package com.kehongborui.net;

import java.io.IOException;
import java.io.InputStream;
import java.net.*;

public class TestDemo {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(9999);  // 创建ServerSocket 对象
        Socket client = serverSocket.accept(); // 等待客户端链接
        InputStream inputStream = client.getInputStream();
        inputStream.read();
    }
}
